import Vue from 'vue'
import Router from 'vue-router'

import Index from "@/components/pages/index.vue"
import Add from "@/components/pages/add.vue"
import Detail from "@/components/pages/detail.vue"

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Index
    },
    {
      path: '/add',
      component: Add
    },
    {
      path: '/detail/:id',
      component: Detail
    }
  ]
})
